Optimal. Leaf size=151 \[ -\frac {1}{2 b f (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}}+\frac {\text {ArcTan}\left (\sqrt {\cos (e+f x)}\right ) \sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}}{4 a b^2 f \sqrt {a \sin (e+f x)}}+\frac {\tanh ^{-1}\left (\sqrt {\cos (e+f x)}\right ) \sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}}{4 a b^2 f \sqrt {a \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 151, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {2677, 2681, 12,
2645, 335, 218, 212, 209} \begin {gather*} \frac {\sqrt {\cos (e+f x)} \text {ArcTan}\left (\sqrt {\cos (e+f x)}\right ) \sqrt {b \tan (e+f x)}}{4 a b^2 f \sqrt {a \sin (e+f x)}}+\frac {\sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)} \tanh ^{-1}\left (\sqrt {\cos (e+f x)}\right )}{4 a b^2 f \sqrt {a \sin (e+f x)}}-\frac {1}{2 b f (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 209
Rule 212
Rule 218
Rule 335
Rule 2645
Rule 2677
Rule 2681
Rubi steps
\begin {align*} \int \frac {1}{(a \sin (e+f x))^{3/2} (b \tan (e+f x))^{3/2}} \, dx &=-\frac {1}{2 b f (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}}-\frac {\int \frac {\sqrt {b \tan (e+f x)}}{(a \sin (e+f x))^{3/2}} \, dx}{4 b^2}\\ &=-\frac {1}{2 b f (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}}-\frac {\left (\sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}\right ) \int \frac {\csc (e+f x)}{a \sqrt {\cos (e+f x)}} \, dx}{4 b^2 \sqrt {a \sin (e+f x)}}\\ &=-\frac {1}{2 b f (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}}-\frac {\left (\sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}\right ) \int \frac {\csc (e+f x)}{\sqrt {\cos (e+f x)}} \, dx}{4 a b^2 \sqrt {a \sin (e+f x)}}\\ &=-\frac {1}{2 b f (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}}+\frac {\left (\sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {x} \left (1-x^2\right )} \, dx,x,\cos (e+f x)\right )}{4 a b^2 f \sqrt {a \sin (e+f x)}}\\ &=-\frac {1}{2 b f (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}}+\frac {\left (\sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}\right ) \text {Subst}\left (\int \frac {1}{1-x^4} \, dx,x,\sqrt {\cos (e+f x)}\right )}{2 a b^2 f \sqrt {a \sin (e+f x)}}\\ &=-\frac {1}{2 b f (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}}+\frac {\left (\sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {\cos (e+f x)}\right )}{4 a b^2 f \sqrt {a \sin (e+f x)}}+\frac {\left (\sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}\right ) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\cos (e+f x)}\right )}{4 a b^2 f \sqrt {a \sin (e+f x)}}\\ &=-\frac {1}{2 b f (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}}+\frac {\tan ^{-1}\left (\sqrt {\cos (e+f x)}\right ) \sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}}{4 a b^2 f \sqrt {a \sin (e+f x)}}+\frac {\tanh ^{-1}\left (\sqrt {\cos (e+f x)}\right ) \sqrt {\cos (e+f x)} \sqrt {b \tan (e+f x)}}{4 a b^2 f \sqrt {a \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.36, size = 103, normalized size = 0.68 \begin {gather*} \frac {\left (\text {ArcTan}\left (\sqrt [4]{\cos ^2(e+f x)}\right )+\tanh ^{-1}\left (\sqrt [4]{\cos ^2(e+f x)}\right )-2 \sqrt [4]{\cos ^2(e+f x)} \csc ^2(e+f x)\right ) \sin ^2(e+f x)}{4 b f \sqrt [4]{\cos ^2(e+f x)} (a \sin (e+f x))^{3/2} \sqrt {b \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(319\) vs.
\(2(125)=250\).
time = 0.35, size = 320, normalized size = 2.12
method | result | size |
default | \(\frac {\left (\arctan \left (\frac {1}{2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}}\right ) \cos \left (f x +e \right )-\cos \left (f x +e \right ) \ln \left (-\frac {2 \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-\left (\cos ^{2}\left (f x +e \right )\right )+2 \cos \left (f x +e \right )-2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-1}{\sin \left (f x +e \right )^{2}}\right )-\arctan \left (\frac {1}{2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}}\right )+\ln \left (-\frac {2 \left (\cos ^{2}\left (f x +e \right )\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-\left (\cos ^{2}\left (f x +e \right )\right )+2 \cos \left (f x +e \right )-2 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}-1}{\sin \left (f x +e \right )^{2}}\right )-4 \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\right ) \sin \left (f x +e \right )}{8 f \sqrt {-\frac {\cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \left (a \sin \left (f x +e \right )\right )^{\frac {3}{2}} \left (\frac {b \sin \left (f x +e \right )}{\cos \left (f x +e \right )}\right )^{\frac {3}{2}} \cos \left (f x +e \right )}\) | \(320\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 328 vs.
\(2 (135) = 270\).
time = 0.69, size = 662, normalized size = 4.38 \begin {gather*} \left [-\frac {2 \, \sqrt {-a b} {\left (\cos \left (f x + e\right )^{2} - 1\right )} \arctan \left (\frac {2 \, \sqrt {-a b} \sqrt {a \sin \left (f x + e\right )} \sqrt {\frac {b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{{\left (a b \cos \left (f x + e\right ) + a b\right )} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) + \sqrt {-a b} {\left (\cos \left (f x + e\right )^{2} - 1\right )} \log \left (-\frac {a b \cos \left (f x + e\right )^{3} - 5 \, a b \cos \left (f x + e\right )^{2} + 4 \, \sqrt {-a b} \sqrt {a \sin \left (f x + e\right )} \sqrt {\frac {b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - 5 \, a b \cos \left (f x + e\right ) + a b}{\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} + 3 \, \cos \left (f x + e\right ) + 1}\right ) \sin \left (f x + e\right ) - 8 \, \sqrt {a \sin \left (f x + e\right )} \sqrt {\frac {b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{16 \, {\left (a^{2} b^{2} f \cos \left (f x + e\right )^{2} - a^{2} b^{2} f\right )} \sin \left (f x + e\right )}, -\frac {2 \, \sqrt {a b} {\left (\cos \left (f x + e\right )^{2} - 1\right )} \arctan \left (\frac {2 \, \sqrt {a b} \sqrt {a \sin \left (f x + e\right )} \sqrt {\frac {b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{{\left (a b \cos \left (f x + e\right ) - a b\right )} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) - \sqrt {a b} {\left (\cos \left (f x + e\right )^{2} - 1\right )} \log \left (-\frac {4 \, \sqrt {a b} {\left (\cos \left (f x + e\right )^{2} + \cos \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right )} \sqrt {\frac {b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} + {\left (a b \cos \left (f x + e\right )^{2} + 6 \, a b \cos \left (f x + e\right ) + a b\right )} \sin \left (f x + e\right )}{{\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) + 1\right )} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) - 8 \, \sqrt {a \sin \left (f x + e\right )} \sqrt {\frac {b \sin \left (f x + e\right )}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{16 \, {\left (a^{2} b^{2} f \cos \left (f x + e\right )^{2} - a^{2} b^{2} f\right )} \sin \left (f x + e\right )}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (a\,\sin \left (e+f\,x\right )\right )}^{3/2}\,{\left (b\,\mathrm {tan}\left (e+f\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________